function determineType(data) {
  const typeFun = Object.prototype.toString;
  const resultType = typeFun.call(data);
  let getdata = null;
  if (resultType) {
    getdata = resultType
    .replace('[object', '')
    .replace(']', '')
    .trim();
  }
  return getdata;
}

export { determineType };
